package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: ialbuqu
 * Date: 7/2/13
 * Time: 5:27 PM
 * To change this template use File | Settings | File Templates.
 */

public class Menu {

    private final IOHandler ioh;

    public Menu(IOHandler ioHandler){
        this.ioh = ioHandler;
    }

    public void showMenu(){
        System.out.println("\nMenu");
        displayMenuOptions();
        showOption();

    }

    public void displayMenuOptions(){
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("\n1 - Login");
        stringBuilder.append("\n2 - See a list of all the books");
        stringBuilder.append("\n3 - Reserve a book");
        stringBuilder.append("\n4 - Check membership details");
        stringBuilder.append("\n5 - See a list of all the movies");
        stringBuilder.append("\n9 - Log out");
        stringBuilder.append("\n0 - Sing Out\n");


        ioh.printMessage(stringBuilder.toString());
    }

    public void showOption(){
        ioh.printMessage("Select Option: ");
    }
}
